<html>

<head>

  <title>TImage32Panel</title>
<script type="text/javascript" src="../../CodeScripts/SyntaxHighlighter/scripts/shCore.js"></script><script type="text/javascript" src="../../CodeScripts/SyntaxHighlighter/scripts/shBrushDelphi.js"></script><script type="text/javascript" src="../../CodeScripts/SyntaxHighlighter/scripts/shBrushCpp.js"></script><script type="text/javascript" src="../../CodeScripts/SyntaxHighlighter/scripts/shBrushCSharp.js"></script><link rel="stylesheet" type="text/css" href="../../Styles/default.css"/><link rel="stylesheet" type="text/css" href="../../Menu/menu.css"/><link rel="stylesheet" type="text/css" href="../../CodeScripts/SyntaxHighlighter/styles/shCoreDefault.css"/><link rel="stylesheet" type="text/css" href="../../CodeScripts/SyntaxHighlighter/styles/shThemeDefault.css"/><meta name="viewport" content="width=device-width, initial-scale=1.0"><script type="text/javascript" src="../../Menu/menu.js"></script><script type="text/javascript" src="../../CodeScripts/bootstrap.js"></script>
</head>

<body bgcolor="#FFFFFF">
  <div class="menu" id="menu"><a class="ancestor" href="../_Body.htm">Index</a><span class="active">Img32.Panels</span>
  </div><br><br>

  <h1>TImage32Panel</h1>
  <p> This unit contains the powerful image viewer - <b>TImage32Panel</b>.<br><br> <img src="../../Images/Image32Panels.png"> </p>

  <p> This component is a descendant of the standard Delphi TPanel component, but with numerous additional features to make viewing images very easy. Features include: 
    <ul>
      <li>Image <b>scrolling and zooming</b> using keyboard, mouse or screen gestures, with scrolling buttons in the panel border</li>
      <li>Image <b>transparency</b> is supported to the panel's opaque background</li>
      <li>Clipboard image copy and paste</li>
      <li>Image file drag and drop</li>

    </ul> </p>
  <div class="autoTbl">
    <div><b>Methods</b>
    </div>

    <div><span><a href="./Classes/TImage32Panel/Methods/ClientToImage.htm">ClientToImage</a></span><span><a href="./Classes/TImage32Panel/Methods/CopyToClipboard.htm">CopyToClipboard</a></span><span><a href="./Classes/TImage32Panel/Methods/ImageToClient.htm">ImageToClient</a></span><span><a href="./Classes/TImage32Panel/Methods/PasteFromClipboard.htm">PasteFromClipboard</a></span><span><a href="./Classes/TImage32Panel/Methods/RecenterImageAt.htm">RecenterImageAt</a></span><span><a href="./Classes/TImage32Panel/Methods/ScaleToFit.htm">ScaleToFit</a></span>

    </div>

  </div>
  <div class="autoTbl">
    <div><b>Properties</b>
    </div>

    <div><span><a href="./Classes/TImage32Panel/Properties/AllowCopyPaste.htm">AllowCopyPaste</a></span><span><a href="./Classes/TImage32Panel/Properties/AllowFileDrop.htm">AllowFileDrop</a></span><span><a href="./Classes/TImage32Panel/Properties/AllowScroll.htm">AllowScroll</a></span><span><a href="./Classes/TImage32Panel/Properties/AllowZoom.htm">AllowZoom</a></span><span><a href="./Classes/TImage32Panel/Properties/AutoCenter.htm">AutoCenter</a></span><span><a href="./Classes/TImage32Panel/Properties/BkgChBrdColor1.htm">BkgChBrdColor1</a></span><span><a href="./Classes/TImage32Panel/Properties/BkgChBrdColor2.htm">BkgChBrdColor2</a></span><span><a href="./Classes/TImage32Panel/Properties/BkgChBrdSize.htm">BkgChBrdSize</a></span><span><a href="./Classes/TImage32Panel/Properties/BkgChBrdType.htm">BkgChBrdType</a></span><span><a href="./Classes/TImage32Panel/Properties/ColorFocused.htm">ColorFocused</a></span><span><a href="./Classes/TImage32Panel/Properties/ColorUnfocused.htm">ColorUnfocused</a></span><span><a href="./Classes/TImage32Panel/Properties/Image.htm">Image</a></span><span><a href="./Classes/TImage32Panel/Properties/InnerClientRect.htm">InnerClientRect</a></span><span><a href="./Classes/TImage32Panel/Properties/InnerMargin.htm">InnerMargin</a></span><span><a href="./Classes/TImage32Panel/Properties/IsScaledToFit.htm">IsScaledToFit</a></span><span><a href="./Classes/TImage32Panel/Properties/Offset.htm">Offset</a></span><span><a href="./Classes/TImage32Panel/Properties/Scale.htm">Scale</a></span><span><a href="./Classes/TImage32Panel/Properties/ScaleMax.htm">ScaleMax</a></span><span><a href="./Classes/TImage32Panel/Properties/ScaleMin.htm">ScaleMin</a></span><span><a href="./Classes/TImage32Panel/Properties/ShowScrollButtons.htm">ShowScrollButtons</a></span>

    </div>

  </div>
  <div class="autoTbl">
    <div><b>Events</b>
    </div>

    <div><span><a href="./Classes/TImage32Panel/Events/OnFileDrop.htm">OnFileDrop</a></span><span><a href="./Classes/TImage32Panel/Events/OnKeyDown.htm">OnKeyDown</a></span><span><a href="./Classes/TImage32Panel/Events/OnKeyUp.htm">OnKeyUp</a></span><span><a href="./Classes/TImage32Panel/Events/OnPaste.htm">OnPaste</a></span><span><a href="./Classes/TImage32Panel/Events/OnScrolling.htm">OnScrolling</a></span><span><a href="./Classes/TImage32Panel/Events/OnZooming.htm">OnZooming</a></span>

    </div>

  </div><br><br>
  <div class="code">
    <pre class="brush: delphi;">
  uses                    
    Forms, ExtCtrls, Image32Panels,  
    Img32, Img32.Fmt.PNG;

  ....
  
  procedure TForm1.FormCreate(Sender: TObject);
  begin
	ImagePanel1.Image.LoadFromResource('MYIMAGE', 'PNG');    
  end;
    </pre>
  </div><br>

  <h3>TImage32Panel keyboard actions:</h3>

  <div class="Comment">(these are disabled when the TabStop property = false)
  </div>

  <table class="autoTbl">

    <tr>
      <td>0 (zero)
      </td>
      <td>Scales the image to best fit
      </td>
    </tr>

    <tr>
      <td>1..9
      </td>
      <td>Scales the image 1 to 9 times normal
      </td>
    </tr>

    <tr>
      <td>[shift] + 1..9
      </td>
      <td>Scales the image 0.1 to 0.9 times normal
      </td>
    </tr>

    <tr>
      <td>arrow keys (&#x25C0;&#x25B2;&#x25BC;&#x25B6;)
      </td>
      <td>normal scrolling
      </td>
    </tr>

    <tr>
      <td>[shift] + arrow keys
      </td>
      <td>accelerated (5 times normal) scrolling
      </td>
    </tr>

    <tr>
      <td>[ctrl]+&#x25B2; ; [ctrl]+&#x25BC;
      </td>
      <td>zoom in and zoom out respectively
      </td>
    </tr>

  </table><br>

  <p>
    <h3>Installation:</h3></p>

  <p> To install this component in Delphi's IDE, you'll need to install 2 packages - first the runtime package (Img32_Library.dpk), and then the designtime package (Img32_VCL_Dsgn.dpk). Both these packages are located in Image32's source/package folder. It's important to install the runtime package first. Also, these packages only need to be installed if you want to install TImage32Panel into Delphi'd IDE. Neither package needs to be installed to use the Image32 library.<br><br> From Delphi's IDE menu, select <span class="monobold">File | Open Project</span> and select the Img32_Library package. Compile and close. Then open the Img32_VCL_Dsgn package, compile and then also install. </p>
  <h2 id="Auto-SeeAlso">See Also</h2>
  <p class="Body"><a href="../_Body.htm"><b>Index</b></a>, <a href="Classes/TImage32Panel/Events/OnFileDrop.htm">OnFileDrop</a>, <a href="Classes/TImage32Panel/Events/OnKeyDown.htm">OnKeyDown</a>, <a href="Classes/TImage32Panel/Events/OnKeyUp.htm">OnKeyUp</a>, <a href="Classes/TImage32Panel/Events/OnPaste.htm">OnPaste</a>, <a href="Classes/TImage32Panel/Events/OnScrolling.htm">OnScrolling</a>, <a href="Classes/TImage32Panel/Events/OnZooming.htm">OnZooming</a>, <a href="Classes/TImage32Panel/Methods/ClientToImage.htm">ClientToImage</a>, <a href="Classes/TImage32Panel/Methods/CopyToClipboard.htm">CopyToClipboard</a>, <a href="Classes/TImage32Panel/Methods/ImageToClient.htm">ImageToClient</a>, <a href="Classes/TImage32Panel/Methods/PasteFromClipboard.htm">PasteFromClipboard</a>, <a href="Classes/TImage32Panel/Methods/RecenterImageAt.htm">RecenterImageAt</a>, <a href="Classes/TImage32Panel/Methods/ScaleToFit.htm">ScaleToFit</a>, <a href="Classes/TImage32Panel/Properties/AllowCopyPaste.htm">AllowCopyPaste</a>, <a href="Classes/TImage32Panel/Properties/AllowFileDrop.htm">AllowFileDrop</a>, <a href="Classes/TImage32Panel/Properties/AllowScroll.htm">AllowScroll</a>, <a href="Classes/TImage32Panel/Properties/AllowZoom.htm">AllowZoom</a>, <a href="Classes/TImage32Panel/Properties/AutoCenter.htm">AutoCenter</a>, <a href="Classes/TImage32Panel/Properties/BkgChBrdColor1.htm">BkgChBrdColor1</a>, <a href="Classes/TImage32Panel/Properties/BkgChBrdColor2.htm">BkgChBrdColor2</a>, <a href="Classes/TImage32Panel/Properties/BkgChBrdSize.htm">BkgChBrdSize</a>, <a href="Classes/TImage32Panel/Properties/BkgChBrdType.htm">BkgChBrdType</a>, <a href="Classes/TImage32Panel/Properties/ColorFocused.htm">ColorFocused</a>, <a href="Classes/TImage32Panel/Properties/ColorUnfocused.htm">ColorUnfocused</a>, <a href="Classes/TImage32Panel/Properties/Image.htm">Image</a>, <a href="Classes/TImage32Panel/Properties/InnerClientRect.htm">InnerClientRect</a>, <a href="Classes/TImage32Panel/Properties/InnerMargin.htm">InnerMargin</a>, <a href="Classes/TImage32Panel/Properties/IsScaledToFit.htm">IsScaledToFit</a>, <a href="Classes/TImage32Panel/Properties/Offset.htm">Offset</a>, <a href="Classes/TImage32Panel/Properties/Scale.htm">Scale</a>, <a href="Classes/TImage32Panel/Properties/ScaleMax.htm">ScaleMax</a>, <a href="Classes/TImage32Panel/Properties/ScaleMin.htm">ScaleMin</a>, <a href="Classes/TImage32Panel/Properties/ShowScrollButtons.htm">ShowScrollButtons</a></p>
  <p class="Copyright" id="auto"> <br><br> Copyright &copy;2010-2023 Angus Johnson&nbsp; - &nbsp;Image32 4.2&nbsp; - &nbsp;Help file built on 26 Mar 2023 <br><br> </p>

</body>

</html>
